<template>
  <div class="dataBase">
    <el-tabs v-model="tabName" class="demo-tabs" @tab-click="tabClick">
      <el-tab-pane label="按文件分级" name="file"><File /></el-tab-pane>
      <el-tab-pane label="按文件服务器分级" name="fileServer"><FileServer /></el-tab-pane>
    </el-tabs>
  </div>
</template>

<script setup lang="tsx">
import FileServer from './components/fileServer.vue'
import File from './components/file.vue'

const tabName = ref('file')

const tabClick = (e) => {
  console.log('e', e)
}
</script>

<style lang="scss">
.dataBase {
  .el-dropdown-link {
    cursor: pointer;
    color: var(--el-color-primary);
    display: inline-flex;
    align-items: center;
    line-height: 23px;
    padding-left: 12px;
  }
  .el-form .el-select {
    width: 100%;
  }
  :deep(.hide-expand .cell) {
    display: none;
  }
  :deep(.el-form .el-cascader) {
    width: 100%;
  }
  :deep(.operate-btn .el-button.is-text) {
    padding: 0 10px 0 0;
  }
  .el-dropdown-link:focus {
    outline: none;
  }
}
</style>
